Skip to main content

Interface: DisplayMediaOptions

The DisplayMediaStreamOptions dictionary is used to instruct the user agent what sort of MediaStreamTracks may be included in the MediaStream returned by getDisplayMedia.

See

https://w3c.github.io/mediacapture-screen-share/#displaymediastreamoptions

Hierarchy

  • DisplayMediaStreamOptions

    DisplayMediaOptions

Properties

audio

Optional audio: boolean | DisplayAudioTrackConstraints

Overrides

DisplayMediaStreamOptions.audio


monitorTypeSurfaces

Optional monitorTypeSurfaces: ConstrainDOMString


selfBrowserSurface

Optional selfBrowserSurface: ConstrainDOMString


surfaceSwitching

Optional surfaceSwitching: ConstrainDOMString


systemAudio

Optional systemAudio: ConstrainDOMString


video

Optional video: boolean | DisplayVideoTrackConstraints

Overrides

DisplayMediaStreamOptions.video